package cn.tedu.front.details.service.impl;

import cn.tedu.front.details.dao.persest.repository.CarouselRepository;
import cn.tedu.front.details.pojo.vo.CarouselVO;
import cn.tedu.front.details.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselServiceImpl implements CarouselService {
    @Autowired
    CarouselRepository repository;

    @Override
    public List<CarouselVO> getCarousel() {
        return repository.listCarousel();
    }
}
